﻿using Microsoft.AspNetCore.Mvc.Filters;

namespace _11Net8AspNetCore_WebApis.Filter
{
    public class MyActionAttribute : ActionFilterAttribute
    {
        public override void OnActionExecuted(ActionExecutedContext context)
        {
            Console.WriteLine("特性执行后"); ;
        }

        public override void OnActionExecuting(ActionExecutingContext context)
        {
            Console.WriteLine("特性执行前");
        }
    }
}
